package com.hepinghospital.user.adapter

import android.annotation.SuppressLint
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.hepinghospital.user.R
import com.rest.response.HomeDeptResponse

/**
 * @Description: 科室适配器
 * @Author: lzp
 * @CreateDate: 2023/3/22 15:01
 * @UpdateRemark: 更新说明
 */
class DeptAdapter(data: MutableList<HomeDeptResponse>) : BaseQuickAdapter<HomeDeptResponse, BaseViewHolder>(R.layout.item_dept, data) {

    @SuppressLint("SetTextI18n")
    override fun convert(holder: BaseViewHolder, item: HomeDeptResponse) {
        holder.setText(R.id.tv_dept_name, item.name)
    }
}